package com.aifbd.main

import android.os.Bundle
import com.aifbd.baselib.base.activity.AifbdBaseDbActivity
import com.aifbd.main.databinding.ActivityMainBinding

class MainActivity : AifbdBaseDbActivity<ViewM, ActivityMainBinding>() {

    private var index = 0

    override fun getLayoutId(): Int {
        return R.layout.activity_main
    }

    override fun onViewCreated(savedInstanceState: Bundle?) {
        mDatabind.click=HolleClick()

    }

    override fun createObserver() {
    }

    inner class HolleClick {
        fun onMsg(){
            mDatabind.tvText.text = "${index++}次"
        }
    }

}